package cn.hnc.checkapi.bean.datatmp;

public class NameMinMaxAveCur {
   private static final long serialVersionUID = -627597604350146446L;
   private String name;
   private Double min;
   private Double max;
   private Double average;
   private Double cur;

   public String getName() {
      return this.name;
   }

   public Double getMin() {
      return this.min;
   }

   public Double getMax() {
      return this.max;
   }

   public Double getAverage() {
      return this.average;
   }

   public Double getCur() {
      return this.cur;
   }

   public void setName(final String name) {
      this.name = name;
   }

   public void setMin(final Double min) {
      this.min = min;
   }

   public void setMax(final Double max) {
      this.max = max;
   }

   public void setAverage(final Double average) {
      this.average = average;
   }

   public void setCur(final Double cur) {
      this.cur = cur;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof NameMinMaxAveCur)) {
         return false;
      } else {
         NameMinMaxAveCur other = (NameMinMaxAveCur)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label71: {
               Object this$name = this.getName();
               Object other$name = other.getName();
               if (this$name == null) {
                  if (other$name == null) {
                     break label71;
                  }
               } else if (this$name.equals(other$name)) {
                  break label71;
               }

               return false;
            }

            Object this$min = this.getMin();
            Object other$min = other.getMin();
            if (this$min == null) {
               if (other$min != null) {
                  return false;
               }
            } else if (!this$min.equals(other$min)) {
               return false;
            }

            label57: {
               Object this$max = this.getMax();
               Object other$max = other.getMax();
               if (this$max == null) {
                  if (other$max == null) {
                     break label57;
                  }
               } else if (this$max.equals(other$max)) {
                  break label57;
               }

               return false;
            }

            Object this$average = this.getAverage();
            Object other$average = other.getAverage();
            if (this$average == null) {
               if (other$average != null) {
                  return false;
               }
            } else if (!this$average.equals(other$average)) {
               return false;
            }

            Object this$cur = this.getCur();
            Object other$cur = other.getCur();
            if (this$cur == null) {
               if (other$cur == null) {
                  return true;
               }
            } else if (this$cur.equals(other$cur)) {
               return true;
            }

            return false;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof NameMinMaxAveCur;
   }

   public int hashCode() {
      boolean PRIME = true;
      int result = 1;
      Object $name = this.getName();
      result = result * 59 + ($name == null ? 43 : $name.hashCode());
      Object $min = this.getMin();
      result = result * 59 + ($min == null ? 43 : $min.hashCode());
      Object $max = this.getMax();
      result = result * 59 + ($max == null ? 43 : $max.hashCode());
      Object $average = this.getAverage();
      result = result * 59 + ($average == null ? 43 : $average.hashCode());
      Object $cur = this.getCur();
      result = result * 59 + ($cur == null ? 43 : $cur.hashCode());
      return result;
   }

   public String toString() {
      return "NameMinMaxAveCur(name=" + this.getName() + ", min=" + this.getMin() + ", max=" + this.getMax() + ", average=" + this.getAverage() + ", cur=" + this.getCur() + ")";
   }
}
